# 继承
class Person():
    def __init__(self,name):
        self.name = name
    
    def eat(self):
        return self.name+"在吃"

# Man继承了Person类
class Man(Person):
    # pass
    # def __init__(self,name):
    #     self.name = name
    # def eat(self):
    #     return self.name+"在吃"
    def drink(self):
        print(self.name+'喝酒')

# p1 = Person('张三')
# print(p1.eat())
m1 = Man('李四')
print(m1.eat())
print(m1.drink())